package com.bridgeintelligent.tag.mapper;

import com.bridgeintelligent.tag.bulkload.api.FileExportDto;
import com.bridgeintelligent.tag.bulkload.api.LookLikeExportDto;
import com.bridgeintelligent.tag.bulkload.api.fileload.Filter;
import com.bridgeintelligent.tag.bulkload.api.fileload.FilterGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author JackCheung
 * @date 2020/5/5 8:02 PM.
 * description:
 */
@Mapper
public interface FileExportMapper {

    FileExportDto findFileExport(String id);

    List<FilterGroup> findFilterGroup(Map<String, String> fgmap);

    List<String> findFilterIds(String id);

    Filter findOneFilterById(String filterId);

    void updateFilePath(@Param("id") String id, @Param("filePath") String filePath,@Param("isReady") String isReady, @Param("fileDate") String fileDate,@Param("CUSTOMER_NUM") String custNum);


    void exportFail(@Param("id")String id,@Param("isReady") String isReady,@Param("uptTime") String uptTime,@Param("reason") String reason);

    LookLikeExportDto findLookLikeConfig(@Param("id")String id);

    FileExportDto findIndexById(@Param("customerId")String customerId);
}
